<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>userRole - write</title>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<script type="text/javascript">
	<!--
		function goList() {
			var f = document.userRoleCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>
	
	<p><a href="/">home</a></p>
		
	<h1>UserRole - edit</h1>
	
	<form:form commandName="userRoleCriteria" id="userRoleCriteriaForm" name="userRoleCriteriaForm" action="/userRole.do" method="get">
	<input type="hidden" name="mode"/>
	<form:hidden path="roleId"/>
	<form:hidden path="userId"/>
	<form:hidden path="paging.currentPage"/>
	</form:form>

	<form:form commandName="userRole" name="userRoleForm" action="/userRoleEdit.do">
	<input type="hidden" name="mode" value="edit"/>
	<form:hidden path="roleId"/>
	<form:hidden path="userId"/>
	<table width="800">
		<colgroup width="800">
			<col width="100"/>
			<col width="*"/>
		</colgroup>
		<tr>
			<th>roleId</th>
			<td>
				<c:out value="${userRole.roleId}"/>
			</td>
		</tr>
		<tr>
			<th>userId</th>
			<td>
				<c:out value="${userRole.userId}"/>
			</td>
		</tr>
	</table>
	<input type="submit" value="edit"/>
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
